<?xml version="1.0" encoding="UTF-8"?>
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:jwork="http://irian.at/jsfatwork"
      xmlns:rich="http://richfaces.org/rich">

<ui:composition template="/templates/template.xhtml">
    <ui:define name="heading">
        Client Administration
        <h:panelGroup rendered="#{!clientAdministrationBean.client.transient}">  - #{clientAdministrationBean.client.fullName}</h:panelGroup>
    </ui:define>
    <ui:define name="content">

        <h:panelGrid columns="2">

            <h:outputLabel value="user name"/>
            <h:inputText value="#{clientAdministrationBean.client.userName}"/>

            <h:outputLabel value="first name"/>
            <h:inputText value="#{clientAdministrationBean.client.firstName}"/>

            <h:outputLabel value="second name"/>
            <h:inputText value="#{clientAdministrationBean.client.secondName}"/>

         </h:panelGrid>

        <h:commandButton value="Save" action="#{clientAdministrationBean.save}"/>
        <h:commandButton value="Cancel" action="cancel"/>

    </ui:define>
</ui:composition>

</html>